package com.lhl.mq.mqClient;

import java.io.IOException;
import java.security.ProtectionDomain;

public class ConnectionFactory {
    //broker server 的ip地址
    private String host;
    //broker server 的端口号
    private int port;

    public Connection newConnection() throws IOException {
        Connection connection = new Connection(host, port);
        return connection;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
